@echo off

if "%~1"=="" goto :eof

if "%~1"=="phone" goto L_PHONE
if "%~1"=="phoneprefs" goto L_PHONEPREFS
if "%~1"=="contacts" goto L_CONTACTS
goto :eof

:L_PHONE

set phonepath=%~dp0com.palm.app.phone

novacom put file://usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js<%phonepath%\app\controllers\app-assistant.js
novacom put file://usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js<%phonepath%\app\controllers\calllog-assistant.js
novacom put file://usr/palm/applications/com.palm.app.phone/app/views/calllog/listitem_altnums.html<%phonepath%\app\views\calllog\listitem_altnums.html
novacom put file://usr/palm/applications/com.palm.app.phone/stylesheets/call-log.css<%phonepath%\stylesheets\call-log.css
novacom put file://usr/palm/applications/com.palm.app.phone/images/call-log-list-sprite-2.png<%phonepath%\images\call-log-list-sprite-2.png
@echo Finish to patch com.palm.app.phone
goto :eof


:L_CONTACTS

set contactspath=%~dp0com.palm.app.contacts
novacom put file://usr/palm/applications/com.palm.app.contacts/app/views/detail/phone-item.html<%contactspath%\app\views\detail\phone-item.html
novacom put file://usr/palm/applications/com.palm.app.contacts/app/controllers/detail-assistant.js<%contactspath%\app\controllers\detail-assistant.js
novacom put file://usr/palm/applications/com.palm.app.contacts/stylesheets/sandbox-styles.css<%contactspath%\stylesheets\sandbox-styles.css
novacom put file://usr/palm/applications/com.palm.app.contacts/images/contacts-ipdial-icon.png<%contactspath%\images\contacts-ipdial-icon.png
@echo Finish to patch com.palm.app.contacts
goto :eof


:L_PHONEPREFS

set contactspath=%~dp0com.palm.app.phoneprefs

novacom put file://usr/palm/applications/com.palm.app.phoneprefs/app/views/preflist/preflist-scene.html<%contactspath%\app\views\preflist\preflist-scene.html
novacom put file://usr/palm/applications/com.palm.app.phoneprefs/stylesheets/phoneprefs.css<%contactspath%\stylesheets\phoneprefs.css
novacom put file://usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js<%contactspath%\app\controllers\preflist-assistant.js
@echo Finish to patch com.palm.app.phoneprefs
goto :eof